import request from '@/utils/request'

// 查询智能配货单列表
export function listSdphd(query) {
  return request({
    url: '/system/sdphd/list',
    method: 'get',
    params: query
  })
}

// 查询智能配货单详细
export function getSdphd(id) {
  return request({
    url: '/system/sdphd/' + id,
    method: 'get'
  })
}

// 新增智能配货单
export function addSdphd(data) {
  return request({
    url: '/system/sdphd',
    method: 'post',
    data: data
  })
}

// 修改智能配货单
export function updateSdphd(data) {
  return request({
    url: '/system/sdphd',
    method: 'put',
    data: data
  })
}

// 删除智能配货单
export function delSdphd(id) {
  return request({
    url: '/system/sdphd/' + id,
    method: 'delete'
  })
}
